projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a20319
)
remove unecessary return statement
author
Joshua DeSeno
<jdeseno@gmail.com>
Mon, 14 Jul 2014 23:17:13 +0000
(08:17 +0900)
committer
Joshua DeSeno
<jdeseno@gmail.com>
Mon, 14 Jul 2014 23:17:13 +0000
(08:17 +0900)
src/cargo/ops/cargo_clean.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_clean.rs
b/src/cargo/ops/cargo_clean.rs
index a9aab85d683d6bdf37064fe8451f6ef5cad921ff..2301f8a0c56e4b8471f9f45d3fcc58f7a7653158 100644
(file)
--- a/
src/cargo/ops/cargo_clean.rs
+++ b/
src/cargo/ops/cargo_clean.rs
@@
-19,8
+19,8
@@
pub fn clean(manifest_path: &Path) -> CargoResult<()>
let build_dir = manifest.get_target_dir();
if build_dir.exists() {
- return rmdir_recursive(build_dir).chain_error(|| human("Could not remove build directory"))
+ rmdir_recursive(build_dir).chain_error(|| human("Could not remove build directory"))
+ } else {
+ Ok(())
}
-
- Ok(())
}